package com.dawn.module.cms.controller.app.category.vo;

import com.dawn.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.dawn.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "app 接口 - 类目分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class AppCategoryListReqVO extends PageParam {

    @Schema(description = "属性(1:顶部导航,2:底部导航,3:友情链接)")
    private String property;

    @Schema(description = "类型(1:列表,2:单页,3:链接)")
    private String type;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "显示状态")
    private Boolean visible;

    @Schema(description = "状态")
    private Boolean status;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
